<?php

namespace app\mini\controller\v1\shop\validate;


use think\Validate;

class ServiceShopValidate extends Validate
{
    protected $rule = [
        'service_type'      => 'require',
        'name'      => 'require|max:50',
        'detail'      => 'require',
        'cover_img'      => 'require',
        'main_business'      => 'require',
        'province'      => 'require',
        'city'      => 'require',
        'districts'      => 'require',
        'address'      => 'require',
        'longitude'      => 'require',
        'latitude'      => 'require',

    ];

    protected $message = [
        'type.require'      => 'type必填',

    ];

    protected $scene = [
        'index'  => ['page', 'service_type'],
        'edit'  => ['service_type','name','main_business','address','longitude','latitude','detail','cover_img'],
        'main_business'  => ['service_type'],
    ];
}